package reflect;

public class Student extends Person implements A{
    private int age;
    private String name;
    private char sex;

    public Student() {
        this.age = 0;
        this.name = "";
        this.sex = 'n';
    }

    private Student(int age) {
        this.age = age;
    }

    public Student(int age, String name, char sex) {
        this.age = age;
        this.name = name;
        this.sex = sex;
    }

    @Override
    public void say(String a) {
        super.say(a);
    }
    private void sleep(){
        System.out.println("sleep!!!!!!!!!");
    }

    @Override
    public String toString() {
        return "Student{" +
                "age=" + age +
                ", name='" + name + '\'' +
                ", sex=" + sex +
                '}';
    }
}
